import dayjs from "dayjs";
import { createModel } from "../utils/create-model";
import mongoose from "mongoose";

export const Veh = createModel("veh", {
  model: String,
  plate: String,
  company: String,
  belong_to: String,
  status: Number,
  driving_license_date: Date, // 行驶证注册日期
  register_date: Date, //登记证书日期
  transport_license_date: Date, //道路运输证日期
  ins_company: String, //保险公司
  ins_end_date: Date, //保险开始日期
  zrx_end_date: Date, //责任险开始日期
  hwx_end_date: Date, //货物险开始日期
  cpx_end_date: Date, //超赔险开始日期
  gzx_end_date: Date, //雇主险开始日期
  year_verify_date: Date, //年检日期
  trade: String, //营运证
});

export const VehCost = createModel("veh_cost", {
  plate: String,
  date: Date,
  key: String,
  value: mongoose.SchemaTypes.Mixed,
});
